package org.wjw.org.mapper;

import org.apache.ibatis.annotations.Param;
import org.wjw.base.mapper.BaseMapper;
import org.wjw.org.domain.Employee;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    void deleteEmployeeRoleByEmployeeId(Integer employeeId);

    void saveEmployeeRole(@Param("employeeId") Integer employeeId, @Param("roleIds") Long[] roleIds);

    List<Long> getRoleIdByEmployeeId(Long employeeId);
}
